package EDT.api;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Random;
import java.util.logging.Level;
import java.util.logging.Logger;

class DBStatic 
{
	/*	
	public static String oracle_host ="localhost";
	public static String oracle_db="edt";
	public static String oracle_username ="system";
	public static String oracle_password="paris";
	*/
    
       public static String url = "jdbc:oracle:thin:@localhost:1522:MIAGE";
       public static String login = "edt2";  
       public static String password = "edt2pw";
	
	public static Connection getOracleConnection() throws SQLException
	
	{
        
            try {
            //Class.forName("oracle.jdbc.OracleDriver");
           Class.forName("oracle.jdbc.driver.OracleDriver");   

            } catch (ClassNotFoundException ex) {
                Logger.getLogger(DBStatic.class.getName()).log(Level.SEVERE, null, ex);
            }
            
            Connection connection = DriverManager.getConnection(url,login,password);
			
            return connection;
	
	}
        
        
        
}
